<template>
  <div class="hello">
    <h1>{{ msg }}</h1>
    <div class="main">
      <div class="img-box">
        <img src="http://txygzs_admin.gitee.io/file/t0.jpg" alt="">
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  props: {
    msg: String
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.hello {
  background-position: center top;
  background-image: url(http://txygzs_admin.gitee.io/file/bg0.jpg);
  background-repeat: no-repeat;
  background-color: #eef7f7;
  overflow: hidden;
}
h1 {
  position: absolute;
  top: 80px;
  left: 50%;
  margin-left: -500px;
}
.main {
  width: 990px;
  margin: 200px auto;
}
.img-box {
  width: 200px;
  height: 200px;
  background-color: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
}
img {
  width: 180px;
  margin-left: 10px;
  margin-top: 10px;
  border-radius: 3px;
}
</style>
